package cn.kgc.service.impl;

import cn.kgc.dao.Dao_szx;
import cn.kgc.pojo.Personnel;
import cn.kgc.service.Service_szx;
import com.github.pagehelper.Page;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.Date;

@Service
public class ServiceImpl_szx implements Service_szx {

    @Resource
    private Dao_szx dao_szx;

    @Override
    public Page<Personnel> selAll( String name, String inputtingtime) {
        return dao_szx.selAll(name,inputtingtime);
    }

    @Override
    public Personnel selById(Integer personnelid) {
        return dao_szx.selById(personnelid);
    }

    @Override
    public Boolean updById(Personnel personnel) {
        if (dao_szx.updById(personnel)>0){
            return true;
        }
        return false;
    }

}
